<?php

app()->config([
    'debug'    => true,
    'mode'     => 'development',   // [development, testing, production]
    // 'app.down' => true,
    'log.enabled' => true,
    'log.dir' => __DIR__ . '/../runtime/logs/',
]);

// app()->set404(function () {
//     response()->json([
//         "error" => "Page not found"
//     ]);
// });

app()->setErrorHandler(function () {
    echo "<h1>My custom error page</h1>";
});

// app()->setDown(function () {
//     response()->page('./down.html');
// });
